from my_module2 import *


#testA
testA()

# 因为testB函数没有添加到all列表，只有all列表里面的功能才能导入
"""
python-BaseException
Traceback (most recent call last):
  File "D:\program files\JetBrains\PyCharm 2025.1.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\program files\JetBrains\PyCharm 2025.1.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "E:\文件资料\python-study\Code\09-模块和包\hm_05_all列表.py", line 7, in <module>
    testB()
    ^^^^^
NameError: name 'testB' is not defined. Did you mean: 'testA'?
"""
testB()
